package connector

import (
	kubekeyapiv1alpha1 "gitee.com/YunFeiGuoJi/kubetools/apis/kubetools/v1alpha1"
)

type Connection interface {
	Exec(cmd string, host *kubekeyapiv1alpha1.HostCfg) (stdout string, err error)
	Scp(src, dst string) error
	Close()
}

type Connector interface {
	Connect(host kubekeyapiv1alpha1.HostCfg) (Connection, error)
}